.weui_msg
  %input{"type"=>"hidden","id"=>"init_state","value"=>"#{@result_data['state']}"}
  .weui_icon_area
    %i.weui_icon_warn.weui_icon_msg
  .weui_text_area
    %h2.weui_msg_title
      操作失败
    %p.weui_msg_desc
      - if  @result_data['state']==601
        = "#{@result_data['products'].collect{|product| product['name'] }.join('，')}，#{@result_data['msg']}"
      - else
        = @result_data['msg']
  .weui_opr_area
    %p.weui_btn_area
      - if  @result_data['state']==601
        %a{:href => "javascript:update_shoppingcart('#{@result_data['products'].collect{|product| "#{product['id']}:#{product['state']}:#{product['stock']}" }.join('，')}')",:class =>'weui_btn weui_btn_primary' }
          更新购物车
      %a{:href => '/',:class =>'weui_btn weui_btn_default' }
        返回首页
